package ArrayList1;

import java.awt.datatransfer.MimeTypeParseException;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: adol book
 * Date: 2022-04-24
 * Time: 17:30
 */
public class EXAM {
    public static void main(String[] args) throws MyListindexoutException, MylistEmptyException {
        MyList myList = new MyList();
        myList.Add(0,1);
        myList.Add(1,3);
        myList.Add(2,5);
        myList.Add(3,67);
        myList.Add(4,99);
        myList.diapiay();
        myList.remove(3);
        myList.diapiay();
        System.out.println("=========");
        myList.clear();
        myList.diapiay();
    }
    public static void main1(String[] args) throws MyListindexoutException, MylistEmptyException {
       MyList myList = new MyList();
        myList.Add(0,1);
        myList.Add(1,3);
        myList.Add(2,5);
        myList.Add(3,67);
        myList.Add(4,99);
        //myList.Add(666);
        myList.diapiay();
        System.out.println("============");
        myList.remove(3);
        myList.diapiay();
        /*int tem = myList.get(-1);
        int ret = myList.get(1);
        System.out.println(ret);*/
    }

}
